package object;

public class Student
{
    String name;
    int chinese;
    int math;

    public void printAllScore()
    {
        System.out.println(name+"的总成绩是：" +(chinese + math));
    }

    public void printAverageScore()
    {
        System.out.println(name + "的平均成绩是："+(chinese + math)/2);
    }
}
